/* 
 * Copyright (c) 2014 zepolar.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    zepolar - initial API and implementation and/or initial documentation
 */
package ec.gob.magap.model.general;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import ec.gob.magap.model.general.enumeration.EnumState;

/**
 *
 * @author zepolar
 */
@Entity
public class SupportingInstitutions {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id;
	@Column(nullable=false)
	private String name;
	@Enumerated(EnumType.STRING)
	private EnumState state;

    /**
     *
     */
    public SupportingInstitutions(){
		this.state = EnumState.ACTIVE;
	}

    /**
     *
     * @return
     */
    public Long getId() {
		return id;
	}

    /**
     *
     * @param id
     */
    public void setId(Long id) {
		this.id = id;
	}

    /**
     *
     * @return
     */
    public String getName() {
		return name;
	}

    /**
     *
     * @param name
     */
    public void setName(String name) {
		this.name = name;
	}

    /**
     *
     * @return
     */
    public EnumState getState() {
		return state;
	}

    /**
     *
     * @param state
     */
    public void setState(EnumState state) {
		this.state = state;
	}
}
